package JavaBase;

public class driverTest {
    public static void main(String[] args) {
        Driver wang=new Driver();
        wang.setName("王师傅");
        wang.setDriveNo(2345453);
        wang.setDriveOfAge(5);
        wang.setHeight(1.8);
        wang.setWeight(153);
        Car bmw=new Car();
        bmw.setBrand("宝马740Li");
        bmw.setPrice(79);
        bmw.setDisplacement(3.0);
        bmw.setOilVolum(5);
        bmw.setSeatCount(5);
        bmw.setWeight(2.5);
        wang.driverCar(bmw);
    }
}
